/*
 * cs.h
 *
 *  Created on: 01-Jun-2009
 *      Author: christian
 */

#include <crystalspace.h>

#ifndef CS_H_
#define CS_H_

class cs {
public:
	cs();
	virtual ~cs();
	/// A pointer to the 3D engine.
	csRef<iEngine> engine;
	/// A pointer to the map loader plugin.
	csRef<iLoader> loader;
	/// A pointer to the 3D renderer plugin.
	csRef<iGraphics3D> g3d;
	  /// A pointer to the virtual clock.
	csRef<iVirtualClock> vc;
	/// A pointer to the File System.
	csRef<iVFS> fs;

	csRef<iObjectRegistry> obj_reg;

	/// A Pointer to the Sound Renderer
	csRef<iSndSysRenderer> sndrenderer;

	/// A Pointer to the Fonts
	csRef<iFont> mainfont;

	static cs& c() {
		static cs singleton;
		return singleton;
	}

};

#endif /* CS_H_ */
